<%-- 
    Document   : template
    Created on : Oct 13, 2011, 2:08:10 AM
    Author     : HIT
--%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <link rel="shortcut icon" href="image/icon.jpg">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><tiles:getAsString name="title" /></title>
        <meta name="keywords" content="Web Design Agency, Free CSS Template, Light Gray, Professional, HTML CSS, 5 pages" />
        <meta name="description" content="Web Design Agency is a professional full-site template with total 5 pages." />


        <script type="text/javascript" src="js/swfobject.js"></script>
        <script type="text/javascript">
            var flashvars = {};
            flashvars.xml_file = "photo_list.xml";
            var params = {};
            params.wmode = "transparent";
            var attributes = {};
            attributes.id = "slider";
            swfobject.embedSWF("flash_slider.swf", "flash_grid_slider", "930", "250", "9.0.0", false, flashvars, params, attributes);
        </script>
        <script type="text/javascript" src="js/jquery_002.js"></script>

        <script type="text/javascript">
            var base_dir = "";
            var rooturl = "";
            var currentTemplate = "default";
        </script>

        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script src="../js/jquery.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function(){
                $('#body2').append('<div id="but_login"></div><div id="light_box"></div>')
                $('#but_login').click(function(){
                    //$('#light_box').css({'display':'block','opacity':'0'}).animate({opacity:0.6},200)
                    $('#light_box').css('opacity','1').fadeIn(200)
                    $('#form2').appendTo('#light_box').show()
                    formTop()
                })
                $('#thoat').click(function(){
                    $('#light_box').hide()
                })
                $(window).resize(function(){
                    formTop()
                })
                function formTop(){
                    $('#form2').css('margin-top',($('#light_box').height()-$('#form2').height())/2)
                }

            })
        </script>
        <link rel="stylesheet" type="text/css" href="css/templatemo_style.css"/>         
        <link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>        
        <link rel="stylesheet" type="text/css" href="css/main.css"/>
        <link rel="stylesheet" type="text/css" href="css/detail.css"/>
        <link rel="stylesheet" type="text/css" href="css/rightmenu.css"/>    
    </head>
    <body >      
        <form action="<c:url value='submit.html'/>" method="POST">   
              <div class="small-box-white">Tên sản phẩm: <spring:bind path="tenSanPham"><input type="hidden" name="${status.expression}" value="${status.value}"/></spring:bind>
                <spring:bind path="tenSp">
                    <input type="text" name="${status.expression}" value="${status.value}"/>
                </spring:bind>  
                <div class="small-box-img">Hình liên quan: <spring:bind path="hinhAnh">
                        <input  type="hidden" name="${status.expression}" value="${status.value}" />
                        <img style=" width:30px; height:30px;"  alt="" src="../images/products/${status.value}">
                        <input type="file"  name="${status.expression}" value="${status.value}"/>
                    </spring:bind></div>
                <div class="small-box-text">Loại sản phẩm:  <spring:bind path="maLoaiSanPham">
                        <select name="${status.expression}">
                            <option value="" selected >-- Loại sản phẩm --</option>
                            <c:forEach items="${lstLSP}" var="lsp"  >
                                <option value="${lsp.maLoaiSp}" <c:if test="${ status.value eq lsp.maLoaiSp }">selected</c:if> >${lsp.tenLoaiSp}</option>
                            </c:forEach>
                        </select>
                    </spring:bind></div>
                <div class="small-box-text">
                    Thông tin giới thiệu: <spring:bind path="gioiThieu">
                        <input type="textarea" name="${status.expression}" value="${status.value}"/>
                    </spring:bind> </div> 
                <div class="small-box-text">   
                    Điểm nổi bật: <spring:bind path="diemNoiBat">
                        <input type="textarea" name="${status.expression}" value="${status.value}"/>
                    </spring:bind>  </div> 
                <div class="small-box-text">   
                    Địa chỉ: <spring:bind path="diaChi">
                        <input type="textarea" name="${status.expression}" value="${status.value}"/>
                    </spring:bind>  </div> 
                <div class="small-box-text">Giá bán: <spring:bind path="giaBan">
                        <input type="text" name="${status.expression}" value="${status.value}" onkeypress="return isNumeric(event)"/>
                    </spring:bind></div>
                <div class="small-box-button"><input type="submit" value="Lưu"/></div>     
                <div class="small-box-button"><input type="button" value="Hủy"/></div>  
            </div>
        </div>
    </form>
                    <div id="bodysp">
        <div id="submitsp">
            <form action="<c:url value='submit.html'/>" method="POST">   
                <div class="small-box-white">Tên sản phẩm: <spring:bind path="tenSanPham"><input type="hidden" name="${status.expression}" value="${status.value}"/></spring:bind>
                    <spring:bind path="tenSp">
                        <input type="text" name="${status.expression}" value="${status.value}"/>
                    </spring:bind>  
                    <div class="small-box-img">Hình liên quan: <spring:bind path="hinhAnh">
                            <input  type="hidden" name="${status.expression}" value="${status.value}" />
                            <img style=" width:30px; height:30px;"  alt="" src="../images/products/${status.value}">
                            <input type="file"  name="${status.expression}" value="${status.value}"/>
                        </spring:bind></div>
                    <div class="small-box-text">Loại sản phẩm:  <spring:bind path="maLoaiSanPham">
                            <select name="${status.expression}">
                                <option value="" selected >-- Loại sản phẩm --</option>
                                <c:forEach items="${lstLSP}" var="lsp"  >
                                    <option value="${lsp.maLoaiSp}" <c:if test="${ status.value eq lsp.maLoaiSp }">selected</c:if> >${lsp.tenLoaiSp}</option>
                                </c:forEach>
                            </select>
                        </spring:bind></div>
                    <div class="small-box-text">
                        Thông tin giới thiệu: <spring:bind path="gioiThieu">
                            <input type="textarea" name="${status.expression}" value="${status.value}"/>
                        </spring:bind> </div> 
                    <div class="small-box-text">   
                        Điểm nổi bật: <spring:bind path="diemNoiBat">
                            <input type="textarea" name="${status.expression}" value="${status.value}"/>
                        </spring:bind>  </div> 
                    <div class="small-box-text">   
                        Địa chỉ: <spring:bind path="diaChi">
                            <input type="textarea" name="${status.expression}" value="${status.value}"/>
                        </spring:bind>  </div> 
                    <div class="small-box-text">Giá bán: <spring:bind path="giaBan">
                            <input type="text" name="${status.expression}" value="${status.value}" onkeypress="return isNumeric(event)"/>
                        </spring:bind></div>
                    <div class="small-box-button"><input type="submit" value="Lưu"/></div>     
                    <div class="small-box-button"><input type="button" value="Hủy" id="thoatsp"/></div>  
                </div>
            </form>
        </div>
    </div>
</body>
</html